﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Sasc.PV.DAL;

namespace Sasc.PV.Web.Admin.SystemManage
{
    public partial class SystemUserSetDep : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                ERPUser user= new ERPUser ();
                Label1.Text = Request.QueryString["UserName"].ToString();
                TextBox1.Text = user.GetXiaShu(Request.QueryString["UserName"].ToString());
                
            }

        }

        //保存
        protected void SubmitImageButton_Click(object sender, ImageClickEventArgs e)
        {
            ERPUser user = new ERPUser();
            user.UpdateXiaShu(Request.QueryString["UserName"].ToString(), TextBox1.Text);
            MessageBox.ShowAndRedirect(this, "用户用户设置成功！", "SystemUser");
        }
    }
}